import React from 'react';

const addSchema = (key,title) => {
    arr.push({
      key: `${key}`,
      title: `${title}`,
      dataType: 'varchar',
      children: [
        {
          key: `${key}yh`,
          title: '应还',
          dataType: 'varchar',
          className: 'table-grey',
        },
        {
          key: `${key}sh`,
          title: '实还',
          dataType: 'varchar',
          className: 'table-grey',
        },
        {
          key: `${key}hkl`,
          title: '还款率',
          dataType: 'varchar',
          className: 'table-grey',
        },
      ]
    })
}

let arr= [
  {
    key: 'zj',
    title: '',
    dataType: 'varchar',
    children: [
      {
        key: 'date',
        title: '日期',
        dataType: 'datetime',
        className: 'table-grey'
      }
    ]
  }
];

addSchema('dqd', '单期贷');
addSchema('sdd', '闪电贷');
addSchema('fqd', '分期贷');

module.exports = arr;